From: stekloff@elm3b216.beaverton.ibm.com Date: Tue, 24 Jan 2006 16:59:33 +0000 (+0100) Subject: Added dependency check for lilo in configure.ac for vmx enabled builds. Must X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16539 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=32553461c76a016aea6435a86a1d60152be995fa;p=xen.git Added dependency check for lilo in configure.ac for vmx enabled builds. Must have lilo version 22.7 or greater. Signed-off-by: Daniel Stekloff --- diff --git a/tools/xm-test/configure.ac b/tools/xm-test/configure.ac index 4a606e611c..f61e6284cb 100644 --- a/tools/xm-test/configure.ac +++ b/tools/xm-test/configure.ac @@ -7,6 +7,7 @@ AM_INIT_AUTOMAKE([1.7 foreign]) # Check for dependencies AC_PROG_CC #AC_PROG_INSTALL +AC_CHECK_PROG([LILO], lilo, lilo, "no", [$PATH]) # Right now, we can assume that the lib/ and ramdisk/ directories # are two levels above the tests @@ -22,6 +23,18 @@ AC_ARG_ENABLE(vmx-support, ENABLE_VMX=False ]) +if test "x$ENABLE_VMX" = "xTrue"; then + if test "$LILO" = "no"; then + AC_MSG_ERROR([lilo not found +lilo version 22.7 or greater must be installed for testing with vmx enabled.]) + else + pass=`$LILO -V | sed -e "s/LILO version //" | awk -F "." '{if ($1 >=22 && $2 >= 7) print "true"; else print "false"}'` + if test "$pass" != "true"; then + AC_MSG_ERROR(Lilo version must be equal or greater to 22.7+.) + fi + fi +fi + AM_CONDITIONAL(VMX, test x$ENABLE_VMX = xTrue) AC_SUBST(ENABLE_VMX)